package com.example.ecommerce.util;

import org.springframework.boot.autoconfigure.context.MessageSourceProperties;

public class I18nProperties extends MessageSourceProperties {
    private String defaultLanguage = "zh-CN";

    public I18nProperties() {
    }

    public String getDefaultLanguage() {
        return this.defaultLanguage;
    }

    public void setDefaultLanguage(final String defaultLanguage) {
        this.defaultLanguage = defaultLanguage;
    }

    public String toString() {
        String var10000 = super.toString();
        return "I18nProperties(super=" + var10000 + ", defaultLanguage=" + this.getDefaultLanguage() + ")";
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof I18nProperties)) {
            return false;
        } else {
            I18nProperties other = (I18nProperties)o;
            if (!other.canEqual(this)) {
                return false;
            } else if (!super.equals(o)) {
                return false;
            } else {
                Object this$defaultLanguage = this.getDefaultLanguage();
                Object other$defaultLanguage = other.getDefaultLanguage();
                if (this$defaultLanguage == null) {
                    if (other$defaultLanguage != null) {
                        return false;
                    }
                } else if (!this$defaultLanguage.equals(other$defaultLanguage)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof I18nProperties;
    }

    public int hashCode() {
        int PRIME = 59;
        int result = super.hashCode();
        Object $defaultLanguage = this.getDefaultLanguage();
        result = result * 59 + ($defaultLanguage == null ? 43 : $defaultLanguage.hashCode());
        return result;
    }
}
